<script src="/assets/libs/jquery/dist/jquery.js"></script>
<script src="/mobile/js/jquery.cxselect.js"></script>
<div class="panel panel-default panel-intro">{:build_heading()}
    <div class="panel-heading">
        <ul class="nav nav-tabs">
            <li {if condition="$type eq 1"}class="active"{/if}><a href="?type=1">出库</a></li>
            <li {if condition="$type eq 2"}class="active"{/if}><a href="?type=2">入库</a></li>

        </ul>

    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">

                <div class="fixed-table-container" style="padding-bottom: 0px;">
                    <div class="fixed-table-header" style="display: none;">
                        <table></table>
                    </div>
                    <div class="fixed-table-body">
                        <div class="fixed-table-loading" style="top: 42px; display: none;">正在努力地加载数据中，请稍候……</div>
                        <table id="table" class="table  table-bordered " data-operate-edit="1" data-operate-del="1" width="100%">
                            <thead>
                            <tr>
                                <th style="text-align: center; vertical-align: middle; " data-field="cname">
                                    <div class="th-inner ">订单号</div>
                                    <div class="fht-cell"></div>
                                </th>

                                <th style="text-align: center; vertical-align: middle; " data-field="ctime">
                                    <div class="th-inner ">数量</div>
                                    <div class="fht-cell"></div>
                                </th>
                                <th style="text-align: center; vertical-align: middle; " data-field="ctime">
                                    <div class="th-inner ">仓库</div>
                                    <div class="fht-cell"></div>
                                </th>
                                <th style="text-align: center; vertical-align: middle; " data-field="ctime">
                                    <div class="th-inner ">操作时间</div>
                                    <div class="fht-cell"></div>
                                </th>
                                <th style="text-align: center; vertical-align: middle; " data-field="ctime">
                                    <div class="th-inner ">操作人</div>
                                    <div class="fht-cell"></div>
                                </th>
                                <th style="text-align: center; vertical-align: middle; " data-field="ctime">
                                    <div class="th-inner ">备注</div>
                                    <div class="fht-cell"></div>
                                </th>
                            </tr>
                            </thead>
                        <tbody data-listidx="0">

                            {notempty name="list"}


                        <?php
                            $gdb = new \app\admin\model\Githouse();
                             $aDb = new \app\admin\model\Admin();



                        ?>

                            {volist name="list" id="vo"}

                            <tr id="c{$vo.id}">

                                <td style="text-align: center; vertical-align: middle; ">{$vo['order_id']}</td>



                                <td style="text-align: center; vertical-align: middle; ">{$vo.num}</td>

                                <td style="text-align: center; vertical-align: middle; ">

                                    <?php
                                        $ck = $gdb->find($vo['cid']);
                                    echo $ck['gname'];
                                    ?>
                                </td>


                                <td style="text-align: center; vertical-align: middle; ">{:date("Y-m-d",$vo['inputtime'])}</td>
                                <td style="text-align: center; vertical-align: middle; ">

                                    <?php
                                        $ck = $aDb->find($vo['publisher']);
                                    echo $ck['username'];
                                    ?>
                                </td>
                                <td style="text-align: center; vertical-align: middle; ">{$vo.mark}</td>



                            </tr>
                            {/volist}
                            {/notempty}

                            </tbody>
                        </table>
                    </div>

                    <div class="fixed-table-pagination" style="display: block;">
                        <div class="pull-left pagination-detail">

                            {$list->render()}


                        </div>
                    </div>



                </div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
</div>
</div>
